Skip to content

GH-3618: Ban JUnit4 imports#3681

Merged
wgtmac merged 1 commit into
apache:masterfrom
nastra:enforce-junit5-imports
Jul 22, 2026
Merged

GH-3618: Ban JUnit4 imports#3681
wgtmac merged 1 commit into
apache:masterfrom
nastra:enforce-junit5-imports

Conversation

@nastra

@nastra nastra commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

This bans JUnit4 imports and forces people to use JUnit5 + AssertJ

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

no

@nastra

nastra commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

/cc @Fokko @wgtmac

@nastra
nastra force-pushed the enforce-junit5-imports branch from 5b96df2 to b37ed2f Compare July 22, 2026 05:57
@wgtmac

wgtmac commented Jul 22, 2026

Copy link
Copy Markdown
Member

Do we need to rebase current open PRs if this gets merged?

@nastra

nastra commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Do we need to rebase current open PRs if this gets merged?

yes, but those PRs will have to be rebased most likely anyway due to the other AssertJ + JUnit5 changes.
Existing PRs that don't show a merge conflict but use old JUnit4 stuff will cause silent merge conflicts and CI failures, because we removed all JUnit4 imports, so it's probably good to ask people to rebase those PRs

@wgtmac
wgtmac merged commit 83c2c80 into apache:master Jul 22, 2026
5 checks passed
@nastra
nastra deleted the enforce-junit5-imports branch July 22, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants